rkcommon.c: Remove unused rkcommon_spi_to_offset
authorTom Rini <[email protected]>
Fri, 9 Jun 2017 02:33:25 +0000 (22:33 -0400)
committerPhilipp Tomsich <[email protected]>
Fri, 23 Jun 2017 14:40:23 +0000 (16:40 +0200)
This function is unused, remove.  Reported by clang-3.8.

Fixes: a1c29d4b43dc ("rockchip: mkimage: set init_boot_size to avoid ...")
Cc: Philipp Tomsich <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
Reviewed-by: Philipp Tomsich <[email protected]>
Signed-off-by: Philipp Tomsich <[email protected]>
tools/rkcommon.c

index a583c0caa0d5d098eb25079f5fe1efb1808e3217..db2da75a966945c6f66c2ef466dfb8d1444b975e 100644 (file)
@@ -226,11 +226,6 @@ static inline unsigned rkcommon_offset_to_spi(unsigned offset)
        return ((offset & ~0x7ff) << 1) + (offset & 0x7ff);
 }
 
-static inline unsigned rkcommon_spi_to_offset(unsigned offset)
-{
-       return ((offset & ~0x7ff) >> 1) + (offset & 0x7ff);
-}
-
 static int rkcommon_parse_header(const void *buf, struct header0_info *header0,
                                 struct spl_info **spl_info)
 {